//
//  UserViewController.swift
//  EngineTestIOS
//
//  Created by 张海南 on 2023/4/18.
//

import UIKit

class UserViewController: UIViewController {

    // 1. 懒加载 main.dart 中的main入口函数对应的Flutter App
    private lazy var subFlutterVC = TestFlutterViewController(withEntrypoint: "mine")
    
    override func viewDidLoad() {
        super.viewDidLoad()
        self.navigationController?.navigationBar.isHidden = true
        
        // 2. 添加FlutterViewController
        addChild(subFlutterVC)
        let safeFrame = self.view.safeAreaLayoutGuide.layoutFrame
        subFlutterVC.view.frame = safeFrame
        self.view.addSubview(subFlutterVC.view)
        subFlutterVC.didMove(toParent: self)
    }


}
